package com.tedu.pojo;

/**
 * 新闻实体类
 */
public class News {
    private  int nid;//
    private  int ntid;//
    private  String ntitle;//

//  `nauthor` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
//  `ncreateDate` datetime DEFAULT NULL,
//            `npicPath` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
//  `ncontent` text COLLATE utf8_unicode_ci NOT NULL,
//            `nmodifyDate` datetime DEFAULT NULL,
//            `nsummary` varchar(40


    @Override
    public String toString() {
        return "News{" +
                "nid=" + nid +
                ", ntid=" + ntid +
                ", ntitle='" + ntitle + '\'' +
                '}';
    }

    public int getNid() {
        return nid;
    }

    public void setNid(int nid) {
        this.nid = nid;
    }

    public int getNtid() {
        return ntid;
    }

    public void setNtid(int ntid) {
        this.ntid = ntid;
    }

    public String getNtitle() {
        return ntitle;
    }

    public void setNtitle(String ntitle) {
        this.ntitle = ntitle;
    }
}
